package com.wanji.single_point.result;



import com.wanji.single_point.entity.Count;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author xinyingjie
 * 
 * 返回的结果，八位分别表示为：
 *      target_num_index = 0;    目标车辆个数
 *      sum_smallcar_index = 1;  小车个数
 *      sum_midcar_index = 2;    中车个数
 *      sum_bigcar_index = 3;    大车个数
 *      avg_speed_index = 4;     平均车速
 *      occupancy_index = 5;     时间占有率
 *      headway_index = 6;       平均车头时距
 *      gap_index = 7;            平均车身间距
 */
@Data
@Component
public class StatePerceiveResult {
//    //真值系统设备id
//    private String realDeviceId;
//    //测试系统设备id
//    private String testDeviceId;
    /**
     * 真值系统累计数据
     */
    private List<List<Integer>> allRealNum = new ArrayList<>();
    /**
     * 测试系统累计数据
     */
    private  List<List<Integer>> allTestNum = new ArrayList<>();
    /**
     * 真值系统缓存
     */
    private  Map<Long, Count> tempRealDic = new ConcurrentHashMap<>();
    /**
     * 测试系统缓存
     */
    private  Map<Long, Count> tempTestDic = new ConcurrentHashMap<>();
    /**
     * 真值系统累计对比数据
     */
    private  int[] totalRealNum = new int[8];
    /**
     * 测试系统累计对比数据
     */
    private  int[] totalTestNum = new int[8];
    /**
     * 系统累计对比正确率分子
     */
    private  int[] fenziNum = new int[8];
    /**
     * 系统累计对比正确率分母
     */
    private  int[] fenmuNum = new int[8];

    private  int[] nowRealNum = new int[8];
    private  int[] nowTestNum = new int[8];
    private  int[] totalRate = {100,100,100,100,100,100,100,100};


    private List<Long> delRealList = new ArrayList<>();
    private List<Long> delTestList = new ArrayList<>();



}
